package com.example.demo.nyxcosmetics;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.metadata.data.WriteCellData;
import lombok.Data;

import java.io.File;
import java.math.BigDecimal;


@Data
@ContentRowHeight(80)
@ColumnWidth(80)
public class ExportDateExt {
    @ExcelProperty("名称")
    @ColumnWidth(50)
    private String name;
    @ExcelProperty("副标题")
    @ColumnWidth(80)
    private String subName;
    @ExcelProperty("销售价格")
    @ColumnWidth(15)
    private BigDecimal price;
    @ExcelProperty("原价")
    @ColumnWidth(15)
    private BigDecimal salePrice;
    @ExcelProperty("图片")
    @ColumnWidth(80)
    private File imageFile;
    @ExcelIgnore
    private WriteCellData<String> image;


    @ExcelProperty("产品名称")
    @ColumnWidth(50)
    private String product_name;
    @ExcelProperty("产品副标题")
    @ColumnWidth(80)
    private String product_subName;
    @ColumnWidth(30)
    @ExcelProperty("产品类别")
    private String product_category;
    @ExcelProperty("产品销售价格")
    @ColumnWidth(15)
    private BigDecimal product_price;
    @ExcelProperty("产品原价")
    @ColumnWidth(15)
    private BigDecimal product_salePrice;
    @ExcelProperty("币种")
    @ColumnWidth(15)
    private String product_currency;
    @ExcelProperty("产品库存")
    @ColumnWidth(15)
    private String product_stock;
    @ExcelProperty("产品图片")
    @ColumnWidth(80)
    private File product_imageFile;
    @ExcelIgnore
    private WriteCellData<String> product_image;

}
